#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_MainWindow.h"
#include "MyDockWidget.h"
#include "CaptureThread.h"
#include "MyGraphicsScene.h"
#include <QTime>
#include <QTimer>
#include <QLabel>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>


class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = Q_NULLPTR);
    ~MainWindow();

    void initStyleSheet();

    MyQueue* m_queImage;

private:

    CaptureThread* m_pThread;

    MyDockWidget* m_myDockWidget;
    QGraphicsScene* m_sence;
    MyGraphicsScene* m_sence_2;
    QGraphicsPixmapItem* m_item;
    QGraphicsPixmapItem* m_item_2;

    QVector<QRgb> m_colors;
    QVector<QRgb> m_colors_2;

    QLabel* m_pLabel;
    QTimer* m_pTimer;

public slots:

    void on_captured();
    void on_fpsRate(int nFps);
    void on_pushButton_clicked();
    bool on_getOverBurdenEnable();
    void on_setOverBurdenEnable(bool arg);

private:
    Ui::MainWindowClass ui;
};

